package com.teamcooperation;

import com.teamcooperation.service.UserService;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

/**
 * @author唐卓
 * @Time 2021-12-29
 */

@RunWith(SpringRunner.class)
@SpringBootTest(classes = {CrmprojectteamApplication.class})
public class TestUserService {
    private Logger log = LoggerFactory.getLogger(TestUserService.class);
    @Resource
    private UserService userService;
    @Before
    public void before(){
        log.info("单元测试开始...");
    }
    @Test
    public void test01(){

        System.out.println("测试");
    }
    @After
    public void after(){
        log.info("单元测试结束...");
    }

}
